# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ctunnel
pkgver=0.7
pkgrel=1
pkgdesc='Tunnel and/or proxy TCP or UDP connections via a cryptographic tunnel.'
arch=('x86_64' 'aarch64')
url='http://nardcore.org/ctunnel'
license=('GPL')
depends=('zlib' 'libgcrypt')
groups=('blackarch' 'blackarch-tunnel')
source=("http://nardcore.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
sha512sums=('9d369fe3df9ba65880caacede0e9bb9e8e79021b')

build() {
  cd "$pkgname-$pkgver"

  make
}

package(){
  cd "$pkgname-$pkgver"

  install -Dm 755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" AUTHORS ChangeLog README \
    INSTALL
}

